home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-03-04 | 1.8 KB | 51 lines | [TEXT/EDIT] |
- /***************
- *
- * System 7.0 Control Panel tester
- *
- * ©1993 Triplo Software
- *
- ****************/
-
- The Control Panel tester is a source code file that you can use to test
- your cdev code resource files under the THINK C 5.0 environment with little
- difference from the operating system.
-
- How to use the cdev tester:
-
- • Make a new project
- • Add the cdev tester.c file, MacTraps, and MacTraps2, if necessary
- Note: cdev tester.c has the main() loop - you need only write the
- the cdev() section
- • Add your cdev source code
- Make sure it has the correct form of:
- pascal long cdev(int,int,int,int,EventRecord*,long,DialogPtr);
- • Add your cdev resources into the new project's resource file.
- • Compile and run the cdev tester. Choose open from the menu to open the
- Control Panel.
-
- IMPORTANT NOTES:
- The major differences from the OS Control Panel shell are as follows:
-
- • There is no A5 world in the OS, but there is one in the cdev tester.
- Make sure that you don't access Quickdraw globals. They won't work in
- the OS world.
- • If you plan to use global variables in the cdev, make sure you use
- the <SetUpA4.h> header file when you compile, but don't use it within
- the cdev tester.
-
- To create your cdev:
-
- • Make a new project
- • Add your cdev file, and change the form to:
- pascal long main(int,int,int,int,EventRecord*,long,DialogPtr);
- • Add any other source files that are necessary.
- • Make a resource file with your resources from the cdev tester resource file
- • Compile the project as a CODE resource, type cdev.
- • Zipadeedoodah! Your control panel will work under the OS!
-
- Any comments, questions, bugs, etc. please report them to:
- Triplo Software
- c/o EOLCOTT@vx.cis.umn.edu
-
- If you think I expect money from this, you're crazy. It's freeware, I guess.
- Have fun. Just credit me where you think it's due.